﻿@model IEnumerable<Janus.Mes.DTO.SysConfigDTO>
@{
    Layout = null;
    ViewBag.ViewTitle = "工单--排程调整";
}
<style>
    .panel p {
        width: 260px;
    }

        .panel p label {
            width: auto;
        }

    .active {
        font-size: 14px;
        font-weight: bold;
    }

    .gdInfo {
        cursor: default;
    }

    .bottomLine:hover {
        font-size: 14px;
        border-bottom: 1px dashed #578990;
    }

    .gdInfo li {
        float: left;
        font-size: 14px;
        line-height: 30px;
        padding-right: 30px;
    }

    .rPadding {
        padding-right: 10px;
    }

        .rPadding a {
            color: #0802FF;
        }

    .bottomLine {
        padding: 5px;
        border-bottom: 1px dashed #CCDADC;
        display: inline-table;
    }
</style>

<script>
    $(function () {
        $("#showOrderList").on("click", function () {
            $("#rowsOrder").show();
        });
    })
</script>

<div class="pageContent">
    @Html.Partial("Buttons", ViewData["CurrentPageButtons"])
    <div class="panelBar">
        <ul class="toolBar">
            <li class=""><a id="showOrderList" class="add" href="javascrpt:void(0);"><span><span class="view "></span>查看受影响排程</span></a></li>
            <li class=""><a class="add" href="#" target="ajax" rel="gdBox"><span><span class="icon104 "></span>保存</span></a></li>
        </ul>
    </div>

    <!--工单信息-->
    <div class="panel collapse">
        <h1>工单信息</h1>
        <div class="pageFormContent">
            <div class="bottomLine ">
                <ul class="gdInfo">
                    <li>
                        <span>工单单号项次：</span>
                        <span class="rPadding">
                            <a href="Manufacturing/Schedule/WorkRequestInfo/8" target="dialog" mask="true" max="true">
                                WO16010001-001
                            </a>
                        </span>
                    </li>
                    <li>
                        <span>物料编码：</span>
                        <span class="rPadding">800-M168-F007R10 </span>
                    </li>
                    <li>
                        <span>交货日期：</span>
                        <span class="rPadding">2016-04-16</span>
                    </li>
                    <li>
                        <span>工单状态：</span>
                        <span class="rPadding">打开 </span>
                    </li>
                    <li>
                        <span>数量：</span>
                        <span class="rPadding">1000</span>
                    </li>
                    <li>
                        <span>完工数量：</span>
                        <span class="rPadding">1000</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <!--排产面板-->
    <div class="panel collapse">
        <h1>排产调整面板</h1>
        <div class="pageFormContent">
            <fieldset>
                <legend>原始排程时间</legend>
                <dl class="nowrap">
                    <p>
                        <label>
                            排程开始时间：
                        </label>
                        <input type="text" size="30" class="textInput readonly ">
                    </p>
                    <p>
                        <label>
                            排程结束时间：
                        </label>
                        <input type="text" size="30" class="textInput readonly">
                    </p>
                </dl>
            </fieldset>

            <fieldset>
                <legend>调整后排程时间</legend>
                <dl class="nowrap">
                    <p>
                        <label>
                            排程开始时间：
                        </label>
                        <input type="text" size="30" class="textInput required date" datefmt="yyyy-MM-dd HH:mm:ss">
                    </p>
                    <p>
                        <label>
                            时间差(小时)：
                        </label>
                        <input type="text" size="30" class="textInput required">
                    </p>
                    <p>
                        <label>
                            <input type="checkbox">
                        </label>
                        受影响的生产排程自动顺延
                    </p>
                </dl>
            </fieldset>
        </div>
    </div>
    <div class="MyPanel" layouth="565">
        <table class="list" width="100%">
            <thead>
                <tr class="header">
                    <th>工单号</th>
                    <th>工单号项次</th>
                    <th>物料编码</th>
                    <th>需求日期</th>
                    <th>排程预计开始时间</th>
                    <th>排程预计结束时间</th>
                </tr>
            </thead>
            <tbody id="rowsOrder" style="display:none;">
                <tr target="id" rel="7" data-tt-id="8">
                    <td>800-M168-F007R10 </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr target="id" rel="2" data-tt-id="8">
                    <td>800-M168-F007R10 </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr rel="2" data-tt-id="8">
                    <td>800-M168-F007R10 </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr rel="2" data-tt-id="8">
                    <td>800-M168-F007R10 </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>

                <tr rel="2" data-tt-id="8">
                    <td>33333</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

